define(['./../initial'], function() {
    var app = angular.module('App.prjStatus');
    app.directive('prjSlidesInside', ['$timeout', '$rootScope',
        function($timeout, $rootScope) {
            return {
                restrict: 'A',
                link: function(scope, el, attrs) {

                    scope.$watch('imgUrls', function(nv, ov) {

                        if (nv && nv.length > 0) {
                            $rootScope.$emit('statusPhotoSlidesLoaded');
                        }
                    }, true);

                },
                templateUrl: 'partials/prjSlidesInside.html'
            };
        }
    ]);
});
